# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=autoconf
pkgver=2.72
pkgrel=0
pkgdesc="GNU tool for automatically configuring source code"
arch="noarch"
license="GPL-3.0-or-later WITH Autoconf-exception-3.0"
url="https://www.gnu.org/software/autoconf"
depends="m4 perl"
subpackages="$pkgname-doc"
options="!check"
source="https://ftp.gnu.org/gnu/autoconf/autoconf-$pkgver.tar.gz"

build() {
	M4=/usr/bin/m4 ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f "$pkgdir"/usr/share/info/dir
	# conflict with binutils
	rm -f "$pkgdir"/usr/share/info/standards.info
}

sha512sums="
3f71d459e2127ef2c98b37f11f5284f0c92318ad8d31c5b6034bed370adfe9f3d0f7a12f87e2efced06c11e2a159de4d4a292b751104e83daf11342f25ba9721  autoconf-2.72.tar.gz
"
